﻿@model Model.Object.WebConfig

@{
    ViewBag.Title = "Create";
}

@using (Html.BeginForm()) {
  <div class="subhead-collapse collapse">
    <div class="subhead">
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <div class="btn-toolbar" id="toolbar">
                        <div class="btn-wrapper" id="toolbar-apply">
                            <button type="submit" class="btn btn-small btn-success" value="Save" name="Submit">
                                <span class="icon-apply icon-white"></span>
                                Save
                            </button>
                        </div>
                        <div class="btn-wrapper" id="toolbar-save">
                            <button type="submit" class="btn btn-small" value="SaveClose" name="Submit">
                                <span class="icon-save"></span>
                                Save &amp; Close
                            </button>
                        </div>
                        <div class="btn-wrapper" id="toolbar-save-new">
                            <button type ="submit" class="btn btn-small" value="SaveNew" name="Submit" class="btn btn-small">
                                <span class="icon-save-new"></span>
                                Save &amp; New
                                </button>
                        </div>
                        <div class="btn-wrapper" id="toolbar-cancel">
                            <a href="@Url.Action("Index")" class="btn btn-small">
                                <span class="icon-cancel"></span>
                                Cancel
                            </a>

                        </div>
                        <div class="btn-group divider"></div>
                        <div class="btn-wrapper" id="toolbar-help">
                            <button rel="help" class="btn btn-small">
                                <span class="icon-question-sign"></span>
                                Help
                            </button>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
    <div class="container-fluid container-main">
        <section id="content">
            <!-- Begin Content -->

            <div class="row-fluid">
                <div id="system-message-container">
                </div>
                <div class="row-fluid">

                    @Html.ValidationSummary()
                    <fieldset>

					    @Html.AntiForgeryToken()

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteTitle)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteTitle)
            @Html.ValidationMessageFor(model => model.SiteTitle)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteDescription)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteDescription)
            @Html.ValidationMessageFor(model => model.SiteDescription)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteFBLink)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteFBLink)
            @Html.ValidationMessageFor(model => model.SiteFBLink)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteGooglePlusLink)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteGooglePlusLink)
            @Html.ValidationMessageFor(model => model.SiteGooglePlusLink)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteGoogleMapCode)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteGoogleMapCode)
            @Html.ValidationMessageFor(model => model.SiteGoogleMapCode)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.SiteFacebookCode)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.SiteFacebookCode)
            @Html.ValidationMessageFor(model => model.SiteFacebookCode)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.ContactBottomText)
        </div>
        <div class="controls">
            @Html.TextAreaFor(model => model.ContactBottomText)
            @Html.ValidationMessageFor(model => model.ContactBottomText)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.StoreName)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.StoreName)
            @Html.ValidationMessageFor(model => model.StoreName)
        </div>
		</div>

        <div class="control-group">
		<div class="control-label">
            @Html.LabelFor(model => model.HotLine)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.HotLine)
            @Html.ValidationMessageFor(model => model.HotLine)
        </div>
		</div>

         </fieldset>	
    </div>

 </div>
            <!-- End Content -->
        </section>

    </div>
}


@section Scripts {
@Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
	@System.Web.Optimization.Scripts.Render("~/ckeditor/ckeditor.js")
@System.Web.Optimization.Scripts.Render("~/ckeditor/config.js")
@System.Web.Optimization.Scripts.Render("~/ckfinder/ckfinder.js")

}
<script type="text/javascript">
    var ck = CKEDITOR.instances['ContactBottomText'];
    if (ck)//check if instance exist
    {
        CKEDITOR.remove(ck);
    }
    CKEDITOR.replace('ContactBottomText', {
        autoGrow_maxHeight: 300,
        height:500,
        removePlugins: 'resize',
        enterMode: CKEDITOR.ENTER_BR,
        filebrowserBrowseUrl: '/ckfinder/ckfinder.html',
        filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html',
        filebrowserUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&amp;type=Files',
        filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&amp;type=Images',
        filebrowserWindowWidth: 800,
        filebrowserWindowHeight: 500,
        toolbar:
		    [
		        { name: 'document', items: ['DocProps', 'Preview', 'Print', '-', 'Templates'] },
	            { name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
	            { name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'SpellChecker', 'Scayt'] },
                { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
	            '/',
                { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
	            { name: 'colors', items: ['TextColor', 'BGColor'] },
	            { name: 'tools', items: ['Maximize', 'ShowBlocks'] },
                '/',
	            { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
	            { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
	            { name: 'insert', items: ['Image'] }
		    ]
    });

   
</script>